/**
 * 
 */
package com.airlines.base.entity.file;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author xxxx
 * @date 2016年12月12日
 * @company xxxx Airlines
 * @description 用于同一管理FastDFS上传的文件，对应表 tbl_fastdfs_files 
 */
public class FastDFSFile {
	
	private String fastdfsFilesId; 	//代理主键 ，对应序列 SEQ_TBL_TBL_FASTDFS_FILES_ID
	private String 	fastdfsKey; 		//上传成功后，fastdfs返回的主键，最大长度50
	private String 	fileName;			//文件名，最大长度255
	private Integer fileKb ; 			//文件大小 单位是 KB
	private Date 	createTime; 		//创建时间
	private String 	createBy ;			//创建人， 最大长度50
	private Date 	deleteTime; 		//删除时间
	private String 	deleteBy;			//删除人， 最大长度50
	private String  type;				//属于哪一个模块、表，最好是用表名称
	private String  typeKey;			//对应的外键key值
	
	 public String getFastdfsFilesId() {
	        return fastdfsFilesId;
	    }

	    public void setFastdfsFilesId(String fastdfsFilesId) {
	        this.fastdfsFilesId = fastdfsFilesId;
	    }

	    public String getFastdfsKey() {
	        return fastdfsKey;
	    }

	    public void setFastdfsKey(String fastdfsKey) {
	        this.fastdfsKey = fastdfsKey == null ? null : fastdfsKey.trim();
	    }

	    public String getFileName() {
	        return fileName;
	    }

	    public void setFileName(String fileName) {
	        this.fileName = fileName == null ? null : fileName.trim();
	    }

	    public Integer getFileKb() {
	        return fileKb;
	    }

	    public void setFileKb(Integer fileKb) {
	        this.fileKb = fileKb;
	    }

	    public Date getCreateTime() {
	        return createTime;
	    }

	    public void setCreateTime(Date createTime) {
	        this.createTime = createTime;
	    }

	    public String getCreateBy() {
	        return createBy;
	    }

	    public void setCreateBy(String createBy) {
	        this.createBy = createBy == null ? null : createBy.trim();
	    }

	    public Date getDeleteTime() {
	        return deleteTime;
	    }

	    public void setDeleteTime(Date deleteTime) {
	        this.deleteTime = deleteTime;
	    }

	    public String getDeleteBy() {
	        return deleteBy;
	    }

	    public void setDeleteBy(String deleteBy) {
	        this.deleteBy = deleteBy == null ? null : deleteBy.trim();
	    }

	

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTypeKey() {
		return typeKey;
	}

	public void setTypeKey(String typeKey) {
		this.typeKey = typeKey;
	}
	
	@Override
	public String toString(){
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
